CC=g++
CFLAGS += -I/usr/local/mysql/include
LDFLAGS = -L/usr/local/mysql/lib/mysql -lxml2 -lz -lmysqlclient -lcrypt -lnsl -lpthread

clog: clog.o
	$(CC) $(LDFLAGS) -o $@ $^

clog.o : clog.cpp
	$(CC) $(CFLAGS) -o $@ -c $^

clean:
	find . -name \*.o -o -name clog | xargs rm -f


